package com.mav.controller;

import com.mav.pojo.OperateLog;
import com.mav.pojo.PageResult;
import com.mav.pojo.Result;
import com.mav.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RequestMapping("/log")
@RestController
public class LogController {
    @Autowired
    LogService logService;
    @GetMapping("/page")
    public Result findAll(Integer page,Integer pageSize){
        PageResult<OperateLog> pageResult =logService.list(page,pageSize);
        return Result.success(pageResult);
    }
}
